/**
 * @param {number} x
 * @return {boolean}
 */
var isPalindrome = function (x) {
  let str = "" + x;
  let newstr = str.split("").reverse().join("");
  return str === newstr;
};